package com.mirana.module.common.model.dictpm;

import com.mirana.frame.base.model.BaseModel;
import com.mirana.frame.db.base.anno.ColumnPlus;
import com.mirana.frame.db.base.anno.FKPlus;
import com.mirana.frame.db.base.anno.Notes;
import com.mirana.frame.db.base.anno.TablePlus;
import lombok.Data;

import java.util.Date;

@Data
@Notes("商机投标表")
@TablePlus(name = "dict_business_tender")
public class DictBusinessTender extends BaseModel {

    @Notes("商机id，外键")
    @ColumnPlus()
    @FKPlus(tableClass = DictBusiness.class)
    private Long business_id;

    @Notes("投标时间")
    @ColumnPlus()
    private Date tender_time;

    @Notes("投标结果，默认0，0尚未投标，1已中标，2未中标")
    @ColumnPlus(default_val = "0", length = "2")
    private int tender_result;

    @Notes("预算金额")
    @ColumnPlus()
    private int budget_amount;

    @Notes("中标金额")
    @ColumnPlus()
    private int win_tender_amount;

    @Notes("中标时间")
    @ColumnPlus()
    private Date win_tender_time;

    @Notes("备注")
    @ColumnPlus(default_val = "''", length = "200")
    private String remark;
}
